home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2007 December
/
PCWKCD1207B.iso
/
Windows marzen
/
Maxthon 2.0.4
/
mx_2.0.4.5799.exe
/
template
/
History
/
maxHistory.js
< prev
Wrap
Text File
|
2007-09-20
|
19KB
|
552 lines
var maxHistory={};
maxHistory.currentPage="history";
$langDefaultSection="History";
maxHistory.init=function(){
maxConfig.setActiveFile("$dynamic");
document.title=$lang("title");
var _1=$id("searchBar");
_1.value=$lang("type_keyword");
_1=$id("btnReset");
_1.style.display="none";
maxHistory.activatePage("history");
};
maxHistory.activatePage=function(_2){
var _3=$id("page_"+maxHistory.currentPage);
if(_3){
_3.className="";
}
var _3=$id("page_"+_2);
if(_3){
_3.className="buttons-active";
}
maxHistory.currentPage=_2;
maxHistory.search.reset();
maxHistory[_2].init();
};
maxHistory.toggleDeleteButton=function(_4,id){
var _6=$id(id+"_delete");
var _7=$id(id+"_icon");
if(!_6||!_7){
alert(_7);
return;
}
if(_4){
_6.style.display="inline";
_7.style.display="none";
}else{
_6.style.display="none";
_7.style.display="inline";
}
};
maxHistory.clean=function(){
if(!confirm($lang("confirm_clean"))){
return;
}
if(maxHistory.currentPage=="feed"){
maxHistory.feed.clean();
}else{
if(maxHistory.currentPage=="keyword"){
maxHistory.keyword.clean();
}else{
maxHistory.history.clean();
}
}
};
maxHistory.search={};
maxHistory.search.select=function(){
var _8=$id("searchBar");
if(_8.value==$lang("type_keyword")){
_8.select();
}
};
maxHistory.search.reset=function(_9){
var _a=$id("searchBar");
_a.value=$lang("type_keyword");
_a=$id("btnReset");
_a.style.display="none";
if(_9){
maxHistory.search.execute();
}
};
maxHistory.search.typeAndGo=function(){
var _b=$id("searchBar");
var _c=$id("btnReset");
if(_b.value.$trim()!=""){
_c.style.display="inline";
}else{
_c.style.display="none";
}
maxHistory.search.lastCall=new Date();
maxHistory.search.typeAndGoCheck();
};
maxHistory.search.typeAndGoCheck=function(){
if(!maxHistory.search.lastCall){
return;
}
var _d=Number(new Date())-Number(maxHistory.search.lastCall);
if(_d>500){
maxHistory.search.lastCall=null;
maxHistory.search.execute();
}else{
setTimeout(maxHistory.search.typeAndGoCheck,500);
}
};
maxHistory.search.execute=function(){
var _e=$id("searchBar");
var _f=_e.value.$trim();
if(_f==$lang("type_keyword")){
_f="";
}
if(maxHistory.currentPage=="feed"){
maxHistory.feed.searchKeywordChange(_f);
}else{
if(maxHistory.currentPage=="keyword"){
maxHistory.keyword.keywordChange(_f);
}else{
maxHistory.history.keywordChange(_f);
}
}
};
maxHistory.history={};
maxHistory.history.api=null;
maxHistory.history.searchKeyword="";
maxHistory.history.currentMode="list";
maxHistory.history.init=function(){
maxHistory.history.initAPI();
maxHistory.history.searchKeyword="";
maxHistory.history.list.init();
};
maxHistory.history.initAPI=function(){
var obj;
try{
obj=external.max_getObj(max_security_id,"history");
}
catch(e){
alert("create history object failed");
throw (e);
return;
}
maxHistory.history.api=obj;
if(maxHistory.history.api.reload()<0){
alert("maxHistory.history.initAPI : load data error");
return;
}
maxHistory.history.api.sortMethod="%lastvisit-desc";
};
maxHistory.history.deleteItem=function(id){
maxHistory.history.api.deleteItem(id);
};
maxHistory.history.clean=function(){
maxHistory.history.api.clearAll();
maxHistory.history.init();
};
maxHistory.history.keywordChange=function(_12){
if(maxHistory.history.searchKeyword==_12){
return;
}
maxHistory.history.searchKeyword=_12;
if(_12==""){
if(maxHistory.history.currentMode!="list"){
maxHistory.history.list.init();
}
maxHistory.history.currentMode="list";
}else{
maxHistory.history.search.init(_12);
maxHistory.history.currentMode="search";
}
};
maxHistory.history.list={};
maxHistory.history.list.dateSpan=null;
maxHistory.history.list.init=function(){
maxHistory.history.list.buildHTML();
maxHistory.history.list.adjustHeight();
window.onresize=maxHistory.history.list.adjustHeight;
maxHistory.history.list.buildDateList();
var str=(new Date()).$toString("yyyy MM dd");
maxHistory.history.list.setDateSpan(str,str);
maxHistory.history.list.activateButton("date","dateToday");
};
maxHistory.history.list.buildHTML=function(_14){
var _15="";
_15+="<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"list-table\" id=\"listTable\">"+"<tr>"+"<td width=\"15%\" valign=\"top\" class=\"list-panel\" nowrap=\"nowrap\"><div id=\"dateList\" style=\"width:100%; heihgt: 500px; overflow-y:auto; overflow-x:hidden;\"> </div></td>"+"<td width=\"25%\" valign=\"top\" class=\"list-panel\" nowrap=\"nowrap\"><div id=\"siteList\" style=\"width:100%; heihgt: 500px; overflow-y:auto; overflow-x:hidden;\"> </div></td>"+"<td valign=\"top\"><div id=\"itemList\" style=\"width:100%; height: 500px; overflow-y:auto; overflow-x:hidden;\"> </div></td>"+"</tr>"+"</table>";
$id("contentWrapper").innerHTML=_15;
};
maxHistory.history.list.adjustHeight=function(){
if(!$id("listTable")){
return;
}
var _16=document.documentElement.clientHeight-160;
$id("dateList").style.height=_16-10;
$id("siteList").style.height=_16-10;
$id("itemList").style.height=_16-10;
};
maxHistory.history.list.buildDateList=function(_17){
var _18=[];
var _19=$Date.parse(maxHistory.history.api.oldestDate);
var _1a=new Date();
var _1b=_19.getFullYear();
var _1c=_1a.getFullYear();
var _1d=_19.getMonth()+1;
var _1e=_1a.getMonth()+1;
var _1f=_19.getDate();
var _20=_1a.getDate();
var _21=_19.getDay();
var _22=_1a.getDay();
if(_21==0){
_21=7;
}
if(_22==0){
_22=7;
}
var _23=Math.floor(Number(_19)/86400000);
var _24=Math.floor(Number(_1a)/86400000);
_18.push(["","","dateAll",$lang("all_date")]);
_18.push([_1a.$toString("yyyy MM dd"),_1a.$toString("yyyy MM dd"),"dateToday",$lang("today")]);
if(_22>1&&_23!=_24){
var _25=_24-_23;
if(_25>6){
_25=0;
}else{
_25=_22-_25-1;
}
for(var i=_22-1;i>0;i--){
var _27=new Date();
_27.setDate(_20-_22+i);
var str=_27.$toString("yyyy MM dd");
_18.push([str,str,"dateWeekDay_"+i,$lang("weekday_"+i)]);
}
}
if((_24-_22+1)>_23){
var cnt=Math.ceil((_24-_22+1-_23)/7);
if(cnt>4){
cnt=4;
}
var _2a=new Date();
var _2b=new Date();
_2a.setDate(_2b.getDate()-_22-6);
_2b.setDate(_2b.getDate()-_22);
for(var i=1;i<cnt;i++){
_18.push([_2a.$toString("yyyy MM dd"),_2b.$toString("yyyy MM dd"),"dateWeek_"+i,$lang(i+"_week_ago")]);
_2a.setDate(_2a.getDate()-7);
_2b.setDate(_2b.getDate()-7);
}
}
if(_1b!=_1c||_1d!=_1e){
var cnt=(_1c-_1b)*12+_1e-_1d;
var _2c=_1c;
var _2d=_1e;
var _2e=[0,31,28,31,30,31,30,31,31,30,31,30,31];
for(var i=0;i<cnt;i++){
_2d--;
if(_2d==0){
_2c--;
_2d=12;
}
_18.push([_2c+" "+_2d+" 1",_2c+" "+_2d+" "+_2e[_2d],"dateMonth_"+i,_2c+"-"+_2d]);
}
}
var _2f="";
for(var i=0;i<_18.length;i++){
var _17=_18[i];
_2f+="<div class=\"list-sep-item\">"+(i==0?"<strong>":"")+"<a href=\"javascript:maxHistory.history.list.setDateSpan('"+_17[0]+"','"+_17[1]+"')\""+" onclick=\"maxHistory.history.list.activateButton('date','"+_17[2]+"');this.blur()\" id=\""+_17[2]+"\""+" onmouseover=\"maxHistory.toggleDeleteButton(true,'date_"+i+"');\""+" onmouseout=\"maxHistory.toggleDeleteButton(false,'date_"+i+"');\""+">"+"<img src=\"images/calendar.png\" id=\"date_"+i+"_icon\" />"+"<img src=\"images/delete.png\" style=\"display:none\" id=\"date_"+i+"_delete\" alt=\""+$lang("delete")+"\" onclick=\"maxHistory.history.list.deleteByDate('"+_17[3]+"','"+_17[0]+"','"+_17[1]+"')\"/> "+_17[3]+"</a>"+(i==0?"</strong>":"")+"</div>";
}
$id("dateList").innerHTML=_2f;
};
maxHistory.history.list.getDateCount=function(_30,_31){
maxHistory.history.api.fromDate=_30;
maxHistory.history.api.toDate=_31;
var str=maxHistory.history.api.output("%id");
return maxHistory.history.api.itemCount;
};
maxHistory.history.list.setDateSpan=function(_33,_34){
maxHistory.history.api.fromDate=_33;
maxHistory.history.api.toDate=_34;
maxHistory.history.list.buildSiteList();
};
maxHistory.history.list.deleteByDate=function(_35,_36,_37){
window.event.cancelBubble=true;
window.event.returnValue=false;
if(!confirm($lang("confirm_delete_date")+"\n\n\""+_35+"\"")){
return;
}
maxHistory.history.api.fromDate=_36;
maxHistory.history.api.toDate=_37;
maxHistory.history.api.outputFormat="%id,";
var _38=maxHistory.history.api.output();
maxHistory.history.deleteItem(_38);
maxHistory.history.initAPI();
maxHistory.history.list.init();
};
maxHistory.history.list.buildSiteList=function(){
var _39="";
var _3a=maxHistory.history.api.getDomainList("%domain$,$%title$||$");
_3a=_3a.split("$||$");
for(var i=0;i<_3a.length;i++){
var tmp=_3a[i].split("$,$");
if(tmp.length!=2){
continue;
}
_39+="<a href=\"javascript:maxHistory.history.list.setSite('"+tmp[0].$safeQuote(true).$encodeHTML()+"')\""+" onclick=\"maxHistory.history.list.activateButton('site','site_"+i+"');this.blur()\" id=\"site_"+i+"\""+" onmouseover=\"maxHistory.toggleDeleteButton(true,'site_"+i+"');\""+" onmouseout=\"maxHistory.toggleDeleteButton(false,'site_"+i+"');\""+" title=\""+tmp[0].$encodeHTML()+"\" />"+"<img src=\"images/website.png\" id=\"site_"+i+"_icon\" />"+"<img src=\"images/delete.png\" style=\"display:none\" id=\"site_"+i+"_delete\" alt=\""+$lang("delete")+"\" onclick=\"maxHistory.history.list.deleteBySite('"+tmp[0].$safeQuote(true).$encodeHTML()+"')\"/> "+tmp[1].$cut(40).$encodeHTML()+"</a>";
}
if(_39==""){
_39=" ";
}
$id("siteList").innerHTML=_39;
$id("itemList").innerHTML=" ";
};
maxHistory.history.list.setSite=function(_3d){
maxHistory.history.api.targetDomain=_3d;
maxHistory.history.list.buildItemList();
};
maxHistory.history.list.deleteBySite=function(_3e){
window.event.cancelBubble=true;
window.event.returnValue=false;
if(!confirm($lang("confirm_delete_site")+"\n\n"+_3e)){
return;
}
maxHistory.history.api.targetDomain=_3e;
maxHistory.history.api.outputFormat="%id,";
var _3f=maxHistory.history.api.output();
maxHistory.history.deleteItem(_3f);
maxHistory.history.list.buildSiteList();
};
maxHistory.history.list.buildItemList=function(){
maxHistory.history.api.pageSize=0;
maxHistory.history.api.outputFormat="%id$,$%title$,$%url$,$%yy-%mm-%dd$,$%icon$,$%summary$||$";
maxHistory.history.api.searchKeyword="";
maxHistory.history.api.currentPage=1;
var _40="";
var _41=maxHistory.history.api.output();
_41=_41.split("$||$");
for(var i=0;i<_41.length;i++){
var tmp=_41[i].split("$,$");
if(tmp.length!=6){
continue;
}
var _44={};
_44.id=tmp[0];
_44.title=tmp[1];
_44.url=tmp[2];
_44.lastVisit=tmp[3];
_44.icon=tmp[4];
_44.summary=tmp[5];
if(_44.url==""){
continue;
}
if(_44.title==""){
_44.title=_44.url;
}
if(_44.icon==""){
_44.icon="images/page.png";
}else{
_44.icon="file:///"+_44.icon;
}
_40+="<div class=\"list-item\">";
_40+="<span onmouseover=\"maxHistory.toggleDeleteButton(true,'item_"+i+"');\" onmouseout=\"maxHistory.toggleDeleteButton(false,'item_"+i+"');\">"+"<img src=\""+_44.icon+"\" id=\"item_"+i+"_icon\" width=\"16\" height=\"16\"/>"+"<img id=\"item_"+i+"_delete\" src=\"images/delete.png\" alt=\""+$lang("delete")+"\" style=\"cursor: pointer;display:none;\" onclick=\"maxHistory.history.list.deleteItem('"+_44.id+"')\" />"+" <a href=\""+_44.url.$sanitizeURL()+"\" target=\"_blank\" title=\""+_44.title.$encodeHTML()+" ("+_44.url.$safeQuote(true).$encodeHTML()+")\">"+_44.title.$cut(60).$encodeHTML()+"</a>"+"</span>"+" <span class=\"list-item-label\">["+_44.lastVisit+"]</span>";
_40+="</div>";
}
if(_40==""){
maxHistory.history.list.buildSiteList();
_40=" ";
}
$write(_40,"itemList");
};
maxHistory.history.list.deleteItem=function(id){
if(id){
maxHistory.history.deleteItem(id);
maxHistory.history.list.buildItemList();
}
};
maxHistory.history.list.activateButton=function(_46,id){
if(maxHistory.history.list["active"+_46]){
var obj=$id(maxHistory.history.list["active"+_46]);
if(obj){
obj.className="";
}
}
var obj=$id(id);
obj.className="active";
maxHistory.history.list["active"+_46]=id;
};
maxHistory.history.search={};
maxHistory.history.search.init=function(_49){
maxHistory.history.api.searchKeyword=_49;
maxHistory.history.api.currentPage=1;
maxHistory.history.search.execute();
};
maxHistory.history.search.execute=function(){
maxHistory.history.api.fromDate="";
maxHistory.history.api.toDate="";
maxHistory.history.api.targetDomain="";
maxHistory.history.api.pageSize=20;
maxHistory.history.api.outputFormat="%id$,$%title$,$%url$,$%yy-%mm-%dd$,$%icon$,$%summary$||$";
var _4a="";
var _4b=maxHistory.history.api.output();
_4b=_4b.split("$||$");
for(var i=0;i<_4b.length;i++){
var tmp=_4b[i].split("$,$");
if(tmp.length!=6){
continue;
}
var _4e={};
_4e.id=tmp[0];
_4e.title=tmp[1];
_4e.url=tmp[2];
_4e.lastVisit=tmp[3];
_4e.icon=tmp[4];
_4e.summary=tmp[5];
if(_4e.url==""){
continue;
}
if(_4e.title==""){
_4e.title=_4e.url;
}
if(_4e.icon==""){
_4e.icon="images/page.png";
}else{
_4e.icon="file:///"+_4e.icon;
}
_4a+="<div class=\"search-item\">";
_4a+="<span onmouseover=\"maxHistory.toggleDeleteButton(true,'item_"+i+"');\" onmouseout=\"maxHistory.toggleDeleteButton(false,'item_"+i+"');\">"+"<img src=\""+_4e.icon+"\" id=\"item_"+i+"_icon\" width=\"16\" height=\"16\"/>"+"<img id=\"item_"+i+"_delete\" src=\"images/delete.png\" alt=\""+$lang("delete")+"\" style=\"cursor: pointer;display:none;\" onclick=\"maxHistory.history.search.deleteItem('"+_4e.id+"')\" />"+" <a href=\""+_4e.url.$sanitizeURL()+"\" target=\"_blank\" title=\""+_4e.title.$encodeHTML()+"\">"+_4e.title.$cut(60).$encodeHTML()+"</a>"+"</span>"+" <span class=\"search-item-label\">["+_4e.lastVisit+"]</span>"+"<div class=\"search-item-url\">"+_4e.url.$encodeHTML()+"</div>"+"</div>";
_4a+="</div>";
}
var _4f="";
if(maxHistory.history.api.itemCount>maxHistory.history.api.pageSize){
var _50={"separator":" ","normal":"<a href=\"javascript:maxHistory.history.search.gotoPage(%page);\"> %page </a>","active":"<a href=\"javascript:;\" class=\"buttons-active\"> %page </a>","prev":"<a href=\"javascript:maxHistory.history.search.gotoPage(%page);\" style=\"font-size: 150%\"> ‹ </a>","next":"<a href=\"javascript:maxHistory.history.search.gotoPage(%page);\" style=\"font-size: 150%\"> › </a>","first":"<a href=\"javascript:maxHistory.history.search.gotoPage(%page);\" style=\"font-size: 150%\"> « </a>","last":"<a href=\"javascript:maxHistory.history.search.gotoPage(%page);\" style=\"font-size: 150%\"> » </a>"};
_4f=$pageLinks(maxHistory.history.api.itemCount,maxHistory.history.api.pageSize,maxHistory.history.api.currentPage,5,_50);
}
var _51="<div class=\"buttonWrapper\">"+"<div class=\"buttons\">"+_4f+"<div class=\"label\">"+$lang("result_count").replace(/\%int/ig,maxHistory.history.api.itemCount)+"</div>"+"</div>"+"</div>"+"<br/>";
_4a=_51+_4a+_51;
var obj=$id("contentWrapper");
obj.innerHTML=_4a;
};
maxHistory.history.search.deleteItem=function(id){
if(id){
maxHistory.history.deleteItem(id);
maxHistory.history.search.execute();
}
};
maxHistory.history.search.gotoPage=function(_54){
if(_54<1||_54>maxHistory.history.api.pageCount){
return;
}
maxHistory.history.api.currentPage=_54;
maxHistory.history.search.execute();
};
maxHistory.feed={};
maxHistory.feed.searchKeyword="";
maxHistory.feed.init=function(){
maxHistory.feed.data=maxConfig.ini.getArray("RSSHistory",false);
$id("contentWrapper").innerHTML="<div id=\"listWrapper\" style=\"width:100%; heihgt: 500px; overflow-y:auto; overflow-x:hidden;\"> </div>";
maxHistory.feed.searchKeyword="";
maxHistory.feed.buildList();
maxHistory.feed.adjustHeight();
window.onresize=maxHistory.feed.adjustHeight;
};
maxHistory.feed.adjustHeight=function(){
if(!$id("listWrapper")){
return;
}
var _55=document.documentElement.clientHeight-160;
$id("listWrapper").style.height=_55-10;
};
maxHistory.feed.buildList=function(){
var _56=false;
if(maxHistory.feed.searchKeyword!=""){
_56=true;
}
var _57="";
for(var i=maxHistory.feed.data.length-1;i>-1;i--){
var _59=maxHistory.feed.data[i][0];
var url=maxHistory.feed.data[i][1];
if(_59==""){
_59=url;
}
if(!_56||(_56&&(_59.indexOf(maxHistory.feed.searchKeyword)>-1||url.indexOf(maxHistory.feed.searchKeyword)>-1))){
var _5b=url.$sanitizeURL();
_57+=_56?"<div class=\"search-item\">":"<div class=\"list-item\">";
_57+="<span onmouseover=\"maxHistory.toggleDeleteButton(true,'item_"+i+"');\" onmouseout=\"maxHistory.toggleDeleteButton(false,'item_"+i+"');\">"+"<img src=\"images/feed.png\" id=\"item_"+i+"_icon\" width=\"16\" height=\"16\"/>"+"<img id=\"item_"+i+"_delete\" src=\"images/delete.png\" alt=\""+$lang("delete")+"\" style=\"cursor: pointer;display:none;\" onclick=\"maxHistory.feed.deleteItem("+i+")\" />"+" <a href=\""+_5b+"\" target=\"_blank\">"+_59.$cut(100).$encodeHTML()+"</a>"+"</span>"+" <a href=\"javascript:;\" onclick=\"maxHistory.feed.add('"+_5b+"');\"><img src=\"images/add.png\" alt=\"\" /></a>"+(_56?"<div class=\"search-item-url\">"+_5b.$encodeHTML()+"</div>":"");
_57+="</div>";
}
}
$id("listWrapper").innerHTML=_57+"<br/><br/>";
};
maxHistory.feed.searchKeywordChange=function(_5c){
maxHistory.feed.searchKeyword=_5c;
maxHistory.feed.buildList();
};
maxHistory.feed.add=function(url){
external.max_addRSS(url);
};
maxHistory.feed.deleteItem=function(_5e){
var _5f=maxHistory.feed.data[_5e];
if(_5f){
maxConfig.ini.deleteKey("RSSHistory",_5f[0]);
maxConfig.save();
maxHistory.feed.data.splice(_5e,1);
maxHistory.feed.buildList();
}
};
maxHistory.feed.clean=function(){
maxConfig.ini.deleteSection("RSSHistory");
maxConfig.save();
maxHistory.feed.init();
};
maxHistory.keyword={};
maxHistory.keyword.searchKeyword="";
maxHistory.keyword.init=function(){
maxHistory.keyword.data=maxConfig.ini.getArray("SearchHistory",false,"dynamic");
$id("contentWrapper").innerHTML="<div id=\"listWrapper\" style=\"width:100%; heihgt: 500px; overflow-y:auto; overflow-x:hidden;\"> </div>";
maxHistory.keyword.searchKeyword="";
maxHistory.keyword.buildList();
maxHistory.keyword.adjustHeight();
window.onresize=maxHistory.keyword.adjustHeight;
};
maxHistory.keyword.adjustHeight=function(){
if(!$id("listWrapper")){
return;
}
var _60=document.documentElement.clientHeight-160;
$id("listWrapper").style.height=_60-10;
};
maxHistory.keyword.keywordChange=function(_61){
maxHistory.keyword.searchKeyword=_61;
maxHistory.keyword.buildList();
};
maxHistory.keyword.buildList=function(){
var _62=false;
if(maxHistory.keyword.searchKeyword!=""){
_62=true;
}
var _63="";
for(var i=maxHistory.keyword.data.length-1;i>-1;i--){
var _65=maxHistory.keyword.data[i][0];
if(!_62||(_62&&_65.indexOf(maxHistory.keyword.searchKeyword)>-1)){
_63+="<div class=\"list-item\">";
_63+="<span onmouseover=\"maxHistory.toggleDeleteButton(true,'item_"+i+"');\" onmouseout=\"maxHistory.toggleDeleteButton(false,'item_"+i+"');\">"+"<img src=\"images/keyword.png\" id=\"item_"+i+"_icon\" width=\"16\" height=\"16\"/>"+"<img id=\"item_"+i+"_delete\" src=\"images/delete.png\" alt=\""+$lang("delete")+"\" style=\"cursor: pointer;display:none;\" onclick=\"maxHistory.keyword.deleteItem("+i+")\" />"+" <a href=\"javascript:;\" onclick=\"maxHistory.keyword.open('"+_65.$safeQuote()+"')\">"+_65.$cut(100).$encodeHTML()+"</a>"+"</span>";
_63+="</div>";
}
}
$id("listWrapper").innerHTML=_63+"<br/><br/>";
};
maxHistory.keyword.open=function(_66){
external.max_newTab(max_security_id,"? "+_66);
};
maxHistory.keyword.deleteItem=function(_67){
var _68=maxHistory.keyword.data[_67];
if(_68){
maxConfig.ini.deleteKey("SearchHistory",_68[0]);
maxConfig.save();
external.max_reload("searchhistory");
maxHistory.keyword.data.splice(_67,1);
maxHistory.keyword.buildList();
}
};
maxHistory.keyword.clean=function(){
maxConfig.ini.deleteSection("SearchHistory");
maxConfig.save();
external.max_reload("searchhistory");
maxHistory.keyword.init();
};